﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Messages.Game.Approach
{
    public class ServerOptionalFeaturesMessage : NetworkMessage
    {
        public ServerOptionalFeaturesMessage(List<int> features)
            : base(NetworkMessageID.ServerOptionalFeaturesMessage)
        {
            base.WriterBuffer.writeShort((short)features.Count);
            features.ForEach(x => base.WriterBuffer.writeShort((short)x));
        }
    }
}
